package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.ContractProvider;
import com.voltmao.persistent.model.ContractProviderCriteria;

import java.util.List;
import java.util.Map;

public interface ContractProviderMapper {
    int countByExample(ContractProviderCriteria example);

    int deleteByExample(ContractProviderCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(ContractProvider record);

    int insertSelective(ContractProvider record);

    List<ContractProvider> selectByExample(ContractProviderCriteria example);

    ContractProvider selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") ContractProvider record, @Param("example") ContractProviderCriteria example);

    int updateByExample(@Param("record") ContractProvider record, @Param("example") ContractProviderCriteria example);

    int updateByPrimaryKeySelective(ContractProvider record);

    int updateByPrimaryKey(ContractProvider record);

    ContractProvider selectByExampleForOne(ContractProviderCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(ContractProviderCriteria example);

    List<Map<String, Object>> selectMapByExample(ContractProviderCriteria example);
    /**
     * 自定义
     */
    List<Map<String, Object>> selectMapByExampleAndType(ContractProviderCriteria example);
}